package com.attendance.service;

import com.attendance.common.CommonResult;
import com.attendance.pojo.Pages;
import com.attendance.pojo.Teacher;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * Created by WYH on 2022/4/16 15:00
 */
public interface TeacherService extends IService<Teacher> {
    //    教师信息展示
    List<Teacher> selectAll();

    //    根据条件查询老师
    CommonResult selectTeacher(Teacher teacher, Pages pages);

    //    新增教师信息
    CommonResult addTeacher(Teacher teacher);

    //    根据id查询
    Teacher selectByTeaId(String id);

    //    编辑教师信息
    CommonResult updateTeacher(Teacher teacher);

    //    修改状态
    CommonResult modifyStatus(String id);
    //  根据姓名查询id
    Teacher selectByTeaName(String Name);

}
